package com.qfedu.service;

import com.qfedu.entity.Askforleave;
import com.qfedu.entity.ResponseData;

import java.util.List;

public interface AskforleaveService {
    /**
     * 增加请假请求
     * @param askforleave
     * @return
     */
    boolean addAskforleave(Askforleave askforleave);

    /**
     * 查询所有请假
     * @param PageIndex
     * @param PageSize
     * @return
     */
    ResponseData<List<Askforleave>>findAllAskforleave(int PageIndex, int PageSize);

    /**
     * 根据id 删除
     * @param id
     * @return
     */
    boolean deleteAskforleave(int id);


    /**
     * 根据id更改
     * @param askforleave
     * @return
     */
    boolean updateAskforleave(Askforleave askforleave);

    Askforleave getAskForById(int id);
}
